package com.lottery.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
* <p>
    * 
    * </p>
*
* @author jobob
* @since 2019-11-04
*/
    @Data
        @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @ApiModel(value="TbForecastInfo对象", description=" 赛事预测信息表")
    @TableName("tb_forecast_info")
    public class ForecastInfo implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long memberId;

    private Date createTime;

    private Date updateTime;

            @ApiModelProperty(value = "0 推荐 1不推荐")
    private Integer recommend;
    @ApiModelProperty(value = "0 推荐 1不推荐")
    private Date recommendTime;
    
            @ApiModelProperty(value = "0 上线 1下线")
    private Integer status;

    @ApiModelProperty(value = "0 已删除")
    private Integer isDel;


    @ApiModelProperty(value = "资费类型 0收费 1不收费")
    private Integer ratesType;

            @ApiModelProperty(value = "定价")
    private BigDecimal price;

            @ApiModelProperty(value = "预测结果 0红 1黑")
    private Integer eventResult;

            @ApiModelProperty(value = "关联赛事id")
    private Long eventId;

            @ApiModelProperty(value = "关联赛事类型 1足球 2篮球")
    private Integer eventType;

            @ApiModelProperty(value = "免费内容")
    private String freeContent;

            @ApiModelProperty(value = "收费内容")
    private String chargeContent;

            @ApiModelProperty(value = "图片")
    private String image;

            @ApiModelProperty(value = "赔率")
    private String odds;

    @ApiModelProperty(value = "1专号 2社区")
    private Integer type;


    @TableField(exist=false)
    @ApiModelProperty(value = "昵称")
    private MemberInfoSub memberSub;

    @TableField(exist=false)
    @ApiModelProperty(value = "赛事信息")
    private List<CompetitionRecord> record;

    @TableField(exist=false)
    @ApiModelProperty(value = "是否已购此条信息 大于1已购  等于0未购")
    private Integer whether;
}
